﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Web;

namespace Books.Models
{
    public class BookListViewModels
    {
            public string UserName { get; set; }
            public double AverageRating { get; set; }
            public List<BookViewModel> Books { get; set; }
        
    }
    public class BookViewModel
    {
        public int BookId { get; set; }
        [Required]
        //Look these up in your free time. "Attributes"!
        // [StringLength(5)] 
        public string Author { get; set; }
        public string Title { get; set; }
        [Required]
        [DisplayName("Poster URL")]
        public string BookImage { get; set; }
        //Ints do neccesarily need validation
        public int Rating { get; set; }
    }
}